package com.resou.reader.data.bookstore;

import com.resou.reader.api.entry.CarousePicBean;
import com.resou.reader.api.entry.CommonData;
import com.resou.reader.api.entry.Result;
import com.resou.reader.api.entry.ResultList;
import com.resou.reader.data.bookstore.model.BasicList;
import com.resou.reader.data.bookstore.model.MorePlateInfo;
import com.resou.reader.data.bookstore.model.PlateNovels;
import com.resou.reader.data.bookstore.response.PlateInfoResponse;

import java.util.List;

import io.reactivex.Observable;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

/**
 *
 */
public interface BookStoreService {

    @POST("homePage/allPlateInfo")
    Observable<ResultList<BasicList<PlateNovels>>> getList(@Query("gender") String gender);

    /**
     * 轮播图
     *
     * @return
     */
    @GET("book/indexPic")
    Observable<Result<CommonData<List<CarousePicBean>>>> getBanner(@Query("gender") String gender);

    @POST("homePage/typePlateInfo")
    Observable<Result<PlateInfoResponse<MorePlateInfo>>> getMoreInfo(@Query("gender") String gender, @Query("plateType") String plateType,
                                                                     @Query("page") int page, @Query("pageNum") int pageNum);

    //换一换
    @GET("repeatChange/getRepeatList")
    Observable<ResultList<PlateNovels>> getRepeatList();
}
